package player;

import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;

import player.model.Player;
import player.model.PlayerImpl;
import player.model.Playlist;
import player.model.Track;
import player.util.TrackLoader;
import player.view.MainWindow;

public class TestView {
	public static void main(String[] args) {
    	try
        {
            Track track = TrackLoader.loadTrack(new File("C:\\Users\\Maxo\\Music\\Laibach\\Wat - 2003\\02 - Tanz Mit Laibach.mp3"));
            Track track1 = TrackLoader.loadTrack(new File("C:\\Users\\Maxo\\Music\\Laibach\\Wat - 2003\\03 - Du Bist Unser.mp3"));
            Playlist playlist = new Playlist();
            playlist.addTrack(track);
            playlist.addTrack(track1);
            
            Player player = new PlayerImpl();
            player.setPlaylist(playlist);
            
            MainWindow mW = new MainWindow("WINapp Player", player);
        	mW.setVisible(true);
             

        } catch (Exception ex)
        {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
	}
}
